import request from '@/utils/request'

// 新增亚马逊信息
export function addData(data) {
  return request({
    url: '/system/amazonCode/insertSysAmazonCode',
    method: 'post',
    data,
  })
}
// 删除亚马逊信息
export function delData(ids) {
  return request({
    url: `/system/amazonCode/remove/${ ids }`,
    method: 'delete',
  })
}
// 修改亚马逊信息
export function editData(data) {
  return request({
    url: '/system/amazonCode/updateSysAmazonCode',
    method: 'put',
    data,
  })
}
// 查询亚马逊信息
export function getData(data) {
  return request({
    url: '/system/amazonCode/selectSysAmazonCodeList',
    method: 'post',
    data,
  })
}
// 根据id查亚马逊信息
export function getDescription(id) {
  return request({
    url: `/system/amazonCode/${ id }`,
    method: 'get',
  })
}
